package com.lu.service;

import java.util.List;
import java.util.Map;

import com.lu.entity.User;
import com.lu.service.impl.UserServiceImpl;

public class UserService {

	public User getUser(Map<String,Object> map) throws Exception{
		UserServiceImpl userServiceImpl = new UserServiceImpl();
		User user = userServiceImpl.getUser(map);
		return user;
	};
	
	public List<User> getUserList(Map<String,Object> map) throws Exception{
		UserServiceImpl userServiceImpl = new UserServiceImpl();
		List<User> list = userServiceImpl.getUserList(map);
		return list;
	};
	
	public Integer save(User user) throws Exception{
		UserServiceImpl userServiceImpl = new UserServiceImpl();
		Integer id = userServiceImpl.save(user);
		return id;
	};
	
	public Integer update(User user) throws Exception{
		UserServiceImpl userServiceImpl = new UserServiceImpl();
		Integer id = userServiceImpl.update(user);
		return id;
	};
	
	public Integer remove(Long id) throws Exception{
		UserServiceImpl userServiceImpl = new UserServiceImpl();
		Integer id2 = userServiceImpl.remove(id);
		return id2;
	};
}
